package com.springTest;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: YLBG-YCY-1325
 * @Description:
 * @Date: 2017/7/21
 */
@Configuration
@ComponentScan(basePackageClasses = CDplayerConfig.class)
public class CDplayerConfig {

//    @Bean
//    @Conditional(MagicConditional.class)
//    // @Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
//    @Scope(value = WebApplicationContext.SCOPE_SESSION, proxyMode = ScopedProxyMode.INTERFACES)
//    public Magic getMagic() {
//        return new Magic();
//    }
//
//    @Bean
//    @Profile("dev")
//    public CompactDisc sgtPerppers() {
//        return new SgtPepper();
//    }
//
//    @Bean
//    @Profile("dev") // 这个profile的话，Test是无法驻入的，因为Test中的注解是@ActiveProfiles("dev")
//    public CDplayer cDplayer(CompactDisc sgtPepper) {
//        return new CDplayer(sgtPepper);
//    }
}
